//
//  BMATag.m
//  LZMusicPlayer
//
//  Created by wulanzhou on 2016/11/1.
//  Copyright © 2016年 wulanzhou. All rights reserved.
//

#import "BMATag.h"

@implementation BMATag

/**
 * 所有音乐标签 (分类)
 * @return
 */
- (NSString *) allSongTags{
    
    NSMutableString *sb = [[NSMutableString alloc] initWithString:[self baseURLString]];
    [sb appendString:@"&method=baidu.ting.tag.getAllTag"];
    return sb;
}

/**
 * 热门音乐标签
 * @param num	数量
 * @return
 */
- (NSString *) hotSongTags:(int)num{
    NSMutableString *sb = [[NSMutableString alloc] initWithString:[self baseURLString]];
    [sb appendString:@"&method=baidu.ting.tag.getHotTag"];
    [sb appendFormat:@"&nums=%d",num];
    return sb;
}

/**
 * 标签为tagname的歌曲
 * @param tagname	标签名
 * @param limit		数量
 * @return
 */
- (NSString *) tagSongsTagName:(NSString *) tagname limit:(int)limit{
    NSMutableString *sb = [[NSMutableString alloc] initWithString:[self baseURLString]];
    [sb appendString:@"&method=baidu.ting.tag.songlist"];
    [sb appendFormat:@"&tagname=%@",tagname];
    [sb appendFormat:@"&limit=%d",limit];
   
    return sb;
}

@end
